﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Mario_Map_Editor
{
    public partial class frmNewMap : Form
    {
        public frmNewMap()
        {
            InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnCreate_Click(object sender, EventArgs e)
        {
            int column = Convert.ToInt32(txtColumn.Text);
            int row = Convert.ToInt32(txtRow.Text);

            frmMain.columns = column;
            frmMain.rows = row;

            this.Close();
        }
    }
}
